﻿define([
    'Xjs/core/util',
    'Xjs/ui/field/Field'
],
function (util, Field) {
    'use strict';

    var type = 'dateField',
    DateField = Xjs.getType(type);

    if (DateField) { // It has been already loaded
        return DateField;
    }

    DateField = util.define({
        base: Field,
        construct: function (conf, parent) {
            DateField.base.constructor.call(this, conf, parent); // Call the base constructor
        },
        type: type

    });

    Xjs.registerType(DateField);

    return DateField;
});